package com.zuipin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户角色映射
 */
@ApiModel(description = "用户角色映射")
public class SysUserRole {
	
	private Long	id;		// 主键 自增长
	private Long	userId;	// 用户id 关联sys_user表主键
	private Long	roleId;	// 角色id 关联sys_role表主键
	
	public SysUserRole() {
	}
	
	public SysUserRole(Long userId, Long roleId) {
		this.roleId = roleId;
		this.userId = userId;
	}
	
	@ApiModelProperty(value = "主键 自增长")
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	@ApiModelProperty(value = "用户id 关联sys_user表主键")
	public Long getUserId() {
		return userId;
	}
	
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	@ApiModelProperty(value = "角色id 关联sys_role表主键")
	public Long getRoleId() {
		return roleId;
	}
	
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
}
